/*
 * Created on 11.09.2006
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package ro.qi.framework.sys.mail.entities;

import java.util.Date;

import ro.qi.framework.sys.entities.Entity;
import ro.qi.framework.sys.entities.components.ByteArray;

/**
 * @author George Pogorelschi
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class MailAttachment extends Entity {

	public MailAttachment() {
		super();
	}

	public MailAttachment(int id) {
		super();
		setId(id);
		select();
	}

	public void setId(int value) {
		setValue("id", value);
	}

	public int getId() {
		return getIntValue("id");
	}

	public void setName(String value) {
		setValue("name", value);
	}

	public String getName() {
		return getStringValue("name");
	}

	public void setFilename(String value) {
		setValue("filename", value);
	}

	public String getFilename() {
		return getStringValue("filename");
	}

	public void setContentType(String value) {
		setValue("contentType", value);
	}

	public String getContentType() {
		return getStringValue("contentType");
	}

	public void setContentLength(int value) {
		setValue("contentLength", value);
	}

	public int getContentLength() {
		return getIntValue("contentLength");
	}

	public void setContent(ByteArray value) {
		setValue("content", value);
	}

	public ByteArray getContent() {
		return (ByteArray)getValue("content");
	}

	public Date getCreateTime() {
		return getDateValue("createTime");
	}

	public Date getUpdateTime() {
		return getDateValue("updateTime");
	}

}
